#0925作业1
print("·" * 50)
oid = "DH202301010001"
time = "2023-01-01 08:50:15"
print(f"单号：{oid}")
print(f"时间：{time}")
print("·" * 50)
goods = [
    ("金士顿U盘8G", 1, 40.00, 40.00),
    ("胜创16GTF卡", 1, 50.00, 50.00),
    ("读卡器", 1, 8.00, 8.00),
    ("网线2米", 1, 5.00, 5.00)
]
tcount = sum(good[1] for good in goods)
tamount = sum(good[3] for good in goods)
damount = tamount
rprice = tamount
cprice = 0.00
print(f"{'名称':<18}{'数量':<6}{'单价':<8}{'金额'}")
for good in goods:
    print(f"{good[0]:<18}{good[1]:<6}{good[2]:<8.2f}{good[3]:.2f}")
print("·" * 50)
print(f"总数量：{tcount}  总额：{tamount:.2f}")
print(f"折后总额：{damount:.2f}")
print(f"实收：{rprice:.2f}        找零：{cprice:.2f}")
print("收银：管理员")
print("·" * 50)

